.inbiz-process-management-component {
  display: flex;
  box-sizing: border-box;
  width: auto;
  height: 100%;
  background: #fff;

  .left-list-box {
    position: relative;
    width: 262px;
    max-height: 100%;
    overflow: hidden;
    border-right: 1px solid #eee;

    // 左侧分组列表
    .left-list {
      position: absolute;
      box-sizing: border-box;
      width: 100%;
      height: 100%;
      padding: 0;
      overflow-x: hidden;
      overflow-y: auto;
      font-family: 'Microsoft Yahei';

      // 写左侧分组列表区的样式区域
      .processGroup {
        display: flex;
        justify-content: space-between;
        box-sizing: border-box;
        width: 100%;
        padding: 0 15px 0 10px;
        color: var(--inbiz-color-text);
        line-height: 32px;

        :nth-child(1) {
          font-weight: bolder;
          font-size: 14px;
        }

        .add-btn {
          display: flex;
          justify-content: space-between;
          color: var(--inbiz-color-primary);
          font-size: 14px;
          line-height: 32px;
          cursor: pointer;

          :nth-child(1) {
            font-weight: bolder;
            font-size: 16px;
          }
        }
      }

      .ant-tree {
        overflow-y: auto;

        .ant-tree-treenode {
          max-width: 253px;
          min-width: 253px;
        }
      }
    }

    .ant-tree.ant-tree-directory .ant-tree-treenode-selected:before,
    .ant-tree.ant-tree-directory .ant-tree-treenode-selected:hover:before {
      background: var(--ant-primary-1);
    }

    .ant-tree.ant-tree-directory .ant-tree-treenode .ant-tree-node-content-wrapper.ant-tree-node-selected {
      color: var(--inbiz-color-heading);
    }

    .ant-tree-treenode {
      padding: 0;

      &::before {
        bottom: 0;
        border-radius: 4px;
      }

      &.ant-tree-treenode-selected {
        .ant-tree-switcher {
          color: var(--inbiz-color-text);
        }
      }

      .ant-tree-switcher {
        line-height: 40px;

        .ant-tree-switcher-icon {
          font-size: 12px;
        }
      }

      .ant-tree-node-content-wrapper {
        overflow: hidden;

        .custon-tree-node {
          width: 100%;
          height: 40px;
          display: flex;
          padding-right: 5px;
          align-items: center;
          justify-content: space-between;

          >span {
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
          }

          .hide-group {
            color: #ccc;
          }

          .tree-node-hand {
            display: none;
            overflow: unset;
          }

          .anticon {
            color: #999;

            &:hover {
              color: var(--inbiz-color-primary);
            }

            &.del:hover {
              color: #ff4d4f;
            }
          }
        }
      }

      &:hover {
        .ant-tree-node-content-wrapper .tree-node-hand {
          display: inline-flex;
        }
      }
    }
  }

  .right-content-box {
    display: flex;
    flex: 1;
    flex-direction: column;
    height: 100%;
    padding-left: 20px;
    overflow: hidden;

    // 主体头部按钮区
    .buttons-header {
      display: flex;
      justify-content: space-between;
      width: 100%;
      margin-bottom: 12px;
      font-family: 'Microsoft Yahei';
      // line-height: 32px;

      .ant-space-item {
        .ant-btn {
          display: flex;
          align-items: center;
          justify-content: space-around;
          box-sizing: border-box;
          padding: 0 15px;
          font-size: 14px;

          .anticon {
            padding-right: 6px;
          }
        }

        .ant-btn-default {
          color: var(--inbiz-color-text);
        }

        .ant-btn-default:hover {
          color: var(--inbiz-color-primary);
          border: 1px solid var(--inbiz-color-primary);
        }
      }
    }
  }

  // 主体表格
  .table-list {
    height: calc(100% - 33px);

    .ant-table-wrapper {
      max-height: calc(100% - 85px);
      overflow-y: auto;
    }

    .b-process-manage-table {
      .ant-table-row-selected>td {
        background-color: #fff !important;

        &::before {
          top: 0;
          left: 0;
          right: 0;
          bottom: 0;
          content: '';
          position: absolute;
          background: var(--ant-primary-1) !important;
        }

        .ant-table-cell-content {
          z-index: 1;
          position: relative;
        }
      }
    }

    .ant-table-content {
      .ant-table-thead {
        >tr {
          >th {
            height: 41px;
            padding: 0 8px !important;
            color: var(--inbiz-color-heading);
          }
        }
      }
    }

    .tableList {
      >td {
        height: 41px;
        padding: 6px 8px !important;
        color: var(--inbiz-color-heading);

        span {
          color: var(--inbiz-color-heading);
        }

        .ant-space-align-start {
          align-items: center;
        }
      }
    }

    .ant-pagination {
      float: right;

      .ant-pagination-prev {
        margin-right: 8px;
      }
    }
  }

  .inbiz-pagination {
    padding-top: 20px;
  }
}

// 新建/修改流程弹窗表单
.process-manage-add-modal-box {
  width: 600px !important;

  .edit-process-modal-content {
    min-height: 300px;
    max-height: 620px;

    .ant-form-horizontal {
      .ant-form-item {
        margin: 0;
        padding-bottom: 20px;

        .ant-select-selector {
          max-height: 88px;
          overflow-y: auto;
        }
      }
    }

    .setterIcon-Box {
      height: 32px;
      margin: -16px 0 0 -86px;
    }

    .ant-form-item-explain {
      .ant-form-item-explain-error {
        word-break: break-all;
      }
    }

    .ant-input-number-disabled {
      color: rgba(0, 0, 0, 0.25);
    }

    // background-color: cornflowerblue;
    // 新建/修改流程弹窗表单内部的样式区域
  }
}

// 选择表单分组下拉弹层
.form-manage-select-group {
  .form-group-down {
    padding-left: 30px;
  }
}

.inbiz-custom-select-group {

  .ant-select:hover,
  .ant-select-focused {
    z-index: 1;
  }

  .ant-select-selector {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
  }

  .ant-btn {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;

    .anticon:hover {
      transform: scale(1);
    }
  }

  .ant-btn:focus {
    color: rgba(0, 0, 0, .85);
    border: 1px solid #d9d9d9;
  }

  .ant-btn:hover {
    color: var(--ant-primary-color-hover);
    border-color: var(--ant-primary-color-hover);
  }
}

// 设置变量弹窗样式
.variate-modal-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  // height: 400px;

  .ant-modal-content {
    .ant-modal-body {
      height: 390px;
    }

    .ant-table-thead {
      >tr {
        >th {
          height: 41px;
          padding: 0 8px !important;
        }
      }
    }

    .ant-modal-footer {
      .ant-btn-default {
        margin-right: 15px;
      }
    }

    .ant-space-align-start {
      margin-bottom: 20px;

      button {
        margin-right: 10px;
      }
    }

    .ant-table-wrapper {
      flex: 1;
    }

    .ant-pagination {
      margin: 10px 0 10px 0;
    }

    .ant-space-align-end {
      padding: 10px 0 10px 0;
    }
  }
}

// 可编辑表格单元格
.variate-selete-edit-able {
  >td {
    height: 30px;
    padding: 5px 8px !important;

    .ant-form-item-explain-error {
      white-space: normal
    }
  }

  .editable-cell-value-wrap {
    height: 30px;
    padding: 0 5px;
    overflow: hidden;
    line-height: 30px;
    white-space: nowrap;
    text-overflow: ellipsis;
    border: 1px solid transparent;
    border-radius: 2px;

    &:hover {
      border-color: #eee;
    }
  }
}

// 发布下架弹窗样式
.publish-off-modal {
  .ant-modal-content {
    width: 600px;
    height: 400px;

    .common {
      display: flex;
      align-items: center;
      height: 130px;
      margin: 20px 0 30px 0;
      padding: 20px 0 20px 30px;
      border: 1px dashed #dad6d6;

      .common-text {
        display: inline-block;
        width: 360px;
        margin-right: 60px;
        font-size: 16px;

        .describe {
          margin-top: 20px;
          color: rgb(179, 175, 175);
          font-size: 14px;
        }
      }

      .anticon {
        color: rgb(153, 153, 153);
        font-size: 50px;
      }

      &:hover {
        .publishIcon .anticon {
          color: var(--inbiz-color-primary);
        }

        .offIcon .anticon {
          color: var(--inbiz-color-danger);
        }
      }
    }

    .publish:hover {
      color: var(--inbiz-color-primary);
      border: 1px dashed var(--inbiz-color-primary);
    }

    .off:hover {
      color: var(--inbiz-color-danger);
      border: 1px dashed var(--inbiz-color-danger);
    }
  }
}

.process-management-group-list {
  width: 100%;
  overflow-y: auto;
  height: calc(100% - 32px);

  .active {
    background: var(--ant-primary-1);

    &:hover {
      background: var(--ant-primary-1);
    }

    &::before {
      transform: rotateX(0deg);
    }
  }
}

.process-management-group-list-sort-item {
  position: relative;
  z-index: 1;
  max-width: 253px;
  min-width: 253px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  padding: 0 10px 0 15px;
  color: #333;
  color: var(--inbiz-color-heading);
  font-size: 14px;
  line-height: 40px;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;

  .item-name {
    flex: 1;
    overflow: hidden;
    color: #333;
    color: var(--inbiz-color-heading);
    font-size: 14px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .item-handle {
    display: none;
    justify-content: space-between;
    font-size: 14px;
    line-height: 14px;
    white-space: nowrap;

    .anticon {
      width: 16px;
      height: 14px;
      margin-left: 5px;
      color: #999;

      &:hover {
        color: var(--inbiz-color-primary);
      }
    }
  }

  &:hover {
    background-color: #fafafa;

    .item-handle {
      display: block;
    }
  }
}

// 编辑表单抽屉
.process-manage-edit-drawer {
  .ant-drawer-header {
    border-bottom: none;
    padding: 10px 15px 0 24px;

    .form-manage-edit-drawer-header {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;

      button {
        padding: 4px 10px;
        line-height: 16px;

        .anticon {
          margin-right: 5px;
          display: inline-flex;

          &:hover {
            transform: scale(1);
          }
        }
      }

      button.ant-btn-default {
        color: #666;

        &:hover {
          color: var(--ant-primary-color-hover);
        }

        &:focus {
          border-color: #d9d9d9;
        }
      }

      .close-drawer {
        width: 32px;
        height: 32px;
        display: flex;
        cursor: pointer;
        align-items: center;
        justify-content: center;
      }
    }
  }

  .ant-drawer-body {
    padding: 0 24px 24px;

    .ant-form-horizontal {
      .ant-form-item {
        margin: 0;
        padding-bottom: 20px;

        .ant-select-selector {
          max-height: 88px;
          overflow-y: auto;
        }
      }
    }

    .setterIcon-Box {
      height: 32px;
      margin: -16px 0 0 -86px;
    }

    .ant-form-item-explain {
      .ant-form-item-explain-error {
        word-break: break-all;
      }
    }

    .ant-input-number-disabled {
      color: rgba(0, 0, 0, 0.25);
    }

    .ant-tabs {
      height: 100%;

      .ant-tabs-extra-content {
        .ant-btn .anticon {
          margin-right: 5px;
        }
      }

      .ant-tabs-content {
        height: 100%;

        .form-preview {
          width: 100%;
          height: 100%;
          border: none;
        }
      }
    }
  }
}